<HTML
><HEAD
><TITLE
>GrSetBackgroundPixmap()</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
"><LINK
REL="HOME"
TITLE="Nano-X Library API"
HREF="index.html"><LINK
REL="UP"
TITLE="Nano-X Function Reference"
HREF="ch2.html"><LINK
REL="PREVIOUS"
TITLE="GrServiceSelect()"
HREF="nxapi_GrServiceSelect.html"><LINK
REL="NEXT"
TITLE="GrSetBorderColor()"
HREF="nxapi_GrSetBorderColor.html"></HEAD
><BODY
CLASS="REFENTRY"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Nano-X Library API</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="nxapi_GrServiceSelect.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="nxapi_GrSetBorderColor.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="NXAPI.GRSETBACKGROUNDPIXMAP"
><TT
CLASS="FUNCTION"
>GrSetBackgroundPixmap()</TT
></A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN6662"
></A
><H2
>Name</H2
><TT
CLASS="FUNCTION"
>GrSetBackgroundPixmap()</TT
>&nbsp;--&nbsp;Set the windows background image</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN6666"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN6667"
></A
><P
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>  void               <B
CLASS="FSFUNC"
>  GrSetBackgroundPixmap </B
></CODE
>( GR_WINDOW_ID       <VAR
CLASS="PDPARAM"
> wid                   </VAR
>,  GR_WINDOW_ID       <VAR
CLASS="PDPARAM"
> pixmap                </VAR
>,  int                <VAR
CLASS="PDPARAM"
> flags                 </VAR
>);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6677"
></A
><H2
>Description</H2
><P
>    This function sets the background of the window
    <TT
CLASS="PARAMETER"
><I
>wid</I
></TT
> to display the image from
    <TT
CLASS="PARAMETER"
><I
>pixmap</I
></TT
>. The <TT
CLASS="PARAMETER"
><I
>flags</I
></TT
>
    parameter specifies how to draw the pixmap (centered, top-left,
    tiled, etc.). If the <TT
CLASS="PARAMETER"
><I
>pixmap</I
></TT
> parameter is
    zero, the background pixmap will be disabled for the window, and
    the window will revert to using a solid color fill.
    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6684"
></A
><H2
>Parameters</H2
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN6686"
></A
><P
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>Type</TH
><TH
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>Name</TH
><TH
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_WINDOW_ID.html"
><SPAN
CLASS="TYPE"
>GR_WINDOW_ID</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>wid</I
></TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The ID of the window to set the background pixmap for.</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_WINDOW_ID.html"
><SPAN
CLASS="TYPE"
>GR_WINDOW_ID</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>pixmap</I
></TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>ID of the pixmap to use as a background image.</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><SPAN
CLASS="TYPE"
>int</SPAN
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>flags</I
></TT
></TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The pixmap drawing flags. These flags define how the
        pixmap should be drawn within the window. See the table below.</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
><DIV
CLASS="TABLE"
><A
NAME="AEN6717"
></A
><P
><B
>Table 2-1. GrSetBackgroundPixmap Flags</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
>Flag</TH
><TH
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_BACKGROUND_TILE</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Tile the pixmap images across the window.</TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_BACKGROUND_CENTER</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Center the pixmap image in the window.</TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_BACKGROUND_TOPLEFT</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Draw the pixmap image in the upper left corner of the window.</TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_BACKGROUND_STRETCH</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Stretch the pixmap image to fit the window.</TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>GR_BACKGROUND_TRANS</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Don't fill in the gaps in the window.</TD
></TR
></TBODY
></TABLE
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN6747"
></A
><H2
>See Also</H2
><P
>      <A
HREF="nxapi_GrNewWindow.html"
>            <TT
CLASS="FUNCTION"
>GrNewWindow()</TT
></A
>, 
      <A
HREF="nxapi_GrNewPixmap.html"
>            <TT
CLASS="FUNCTION"
>GrNewPixmap()</TT
></A
>, 
      <A
HREF="nxapi_GrDrawImageToFit.html"
>            <TT
CLASS="FUNCTION"
>GrDrawImageToFit()</TT
></A
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="nxapi_GrServiceSelect.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="nxapi_GrSetBorderColor.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><TT
CLASS="FUNCTION"
>GrServiceSelect()</TT
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ch2.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><TT
CLASS="FUNCTION"
>GrSetBorderColor()</TT
></TD
></TR
></TABLE
></DIV
></BODY
></HTML
>